<#assign flowdescid=auth.getuuid()>
<#assign actorsid=auth.getuuid()>
<div class="bjui-pageHeader" style="text-align: center;">
	协作单
</div>
<!-- <div class="bjui-pageContent"> -->
        <#if (formdata)?exists>
			    <form action="${rootpath}/Flow/form_save"  class="pageForm" data-toggle="validate" data-reload="true">
			        <input type="hidden" name="__id" value="${formdata.id!}"><!-- 表单的ID -->
			        <input type="hidden" name="__orderid" value="${orderid!}"><!-- 流程实例ID -->
			        <input type="hidden" name="__taskid" value="${taskid!}"><!-- 任务ID -->
			        <input type="hidden" name="__formpath" value="${formpath!}"><!-- 任务路径 -->
			        <input type="hidden" name="__ordertitlecolname" value="concert_title"><!-- 用此列名更新实例标题 -->
			        <input type="hidden" name="__argscolname" value="douser"><!-- 写入流程参数MAP的列名，逗号分隔 -->
			        <div class="pageFormContent">
			            <table class="table table-condensed table-hover" width="100%">
			                <tbody>
			                	<tr>
			                		<td colspan="2">
			                            <label class="control-label x70">发起时间：</label>
			                            <input type="text"  value="${formdata.pm_create_time!}" readonly="readonly" size="15">
			                        </td>
			                	</tr>
			                    <tr>
			                        <td>
			                            <label  class="control-label x70">发起人：</label>
			                            <input type="text"  value="${formdata.pm_creator!}" readonly="readonly" size="15">
			                        </td>
			                        <td>
			                            <label class="control-label x70">发起部门：</label>
			                            <input type="text"  value="${formdata.pm_creator_dept!}" readonly="readonly" size="15">
			                        </td>
			                    </tr>
								<tr>
									<td colspan="2">
										<label class="control-label x70">协作标题：</label>
										<input type="text"  readonly="readonly" value="${formdata.concert_title!}" size="20">
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<label class="control-label x70">协作人：</label>
				        				<input type="text" value="${formdata.dousersname!}" readonly="readonly">
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<label class="control-label x70">接收人：</label>
										<input type="hidden"  value="${formdata.douser!}" readonly="readonly">
				        				<input type="text"  value="${formdata.dousername!}" readonly="readonly">
				        			</td>
								</tr>
			                    <tr>
			                    	<td colspan="2">
										<label class="control-label x70">协作说明：</label>
										<textarea disabled="disabled" data-toggle="autoheight" rows="1" cols="50">${formdata.concert_send!}</textarea>
									</td>
			                    </tr>
			                    <tr>
			                    	<td colspan="2">
										<label class="control-label x70">接收说明：</label>
										<textarea disabled="disabled" data-toggle="autoheight" rows="1" cols="50">${formdata.concert_get!}</textarea>
									</td>
			                    </tr>
			                    <tr>
			                    	<td colspan="2">
										<label class="control-label x70">完成说明：</label>
										<textarea disabled="disabled" data-toggle="autoheight" rows="1" cols="50">${formdata.concert_complete!}</textarea>
									</td>
			                    </tr>
			                    <tr>
			                    	<td colspan="2">
										<label class="control-label x70">结案说明：</label>
										<textarea id="${flowdescid}" name="concert_close" data-toggle="autoheight" rows="1" cols="50">${formdata.concert_close!}</textarea>
									</td>
			                    </tr>
			                </tbody>
			            </table>
			        </div>
			        <div >
			            <ul>
			                <!-- <li class="pull-left"><button type="submit" class="btn-default" data-icon="save">保存表单</button></li> -->
							<!-- 流转、转发、驳回 按钮 如需先调用保存表单data-toggle="formsubmitdoajax" 无需保存表单data-toggle="doajax" -->
			                <li class="pull-right"><a class="btn btn-green" data-icon="check" data-toggle="formsubmitdoajax" data-warn="URL参数不正确！" href="${rootpath}/Flow/task_exec?type=1&typename=完成&typedesc={#${flowdescid}}&taskid=${taskid}">完成</a></li>
				        	<li class="pull-right"><a class="btn btn-red" data-icon="close" data-toggle="formsubmitdoajax"   data-warn="URL参数不正确！" href="${rootpath}/Flow/task_exec?type=-1&typename=驳回&typedesc={#${flowdescid}}&taskid=${taskid}">驳回</a></li>
				        	<li class="pull-right"><a class="btn btn-blue" data-icon="share" data-toggle="formsubmitdoajax"  data-warn="URL参数不正确！" href="${rootpath}/Flow/task_exec?type=0&typename=转发&typedesc={#${flowdescid}}&actors={#${actorsid}}&taskid=${taskid}">转发</a></li>
				        	<li class="pull-right">
				        		<input type="hidden"  id = "${actorsid}" name="__actorsid" size="5">
				        		<input type="text" data-toggle="lookup" data-url="${rootpath}/Flow/get_user" name="__actorsname" size="20" data-width="900" data-height="600">
				        	</li>
			            	<li class="pull-right"><a href="${rootpath}/Snaker/orderview?orderid=${orderid}" data-toggle="dialog" data-id="snakerorderview" 
                        			data-width="980" data-height="780" data-mask="true" data-type="POST" 
                        			data-title="流程实例流程图" class="btn btn-blue">查看流程图</a></li>
			            </ul>
			        </div>
			    </form>
	    </#if>
<!-- </div> -->
